package edu.qd.learn.day1301;

import java.util.HashMap;
import java.util.Map;

/**
 * 图
 *
 * @author 布衣
 */
public class LearnMap {

    public static void main(String[] args) {
//        Hash  key value
        Map<String, String> map = new HashMap<>();
        map.put("1", "I");
        map.put("2", "II");
        map.put("3", "III");
        map.put("4", "IV");
        map.put("5", "V");
        map.put("6", "VI");
        map.put("7", "VII");
        map.put("8", "VIII");
        map.put("10", "X");

        int a = 14;
        int g = a%10;
        int s = a / 10* 10;
        System.out.println(map.get(String.valueOf(s)) + map.get(String.valueOf(g)));
    }

}
